﻿#pragma once

#include "../MonsterObject.h"
#include "../../MirDatabase/MonsterInfo.h"
#include <vector>
#include <any>

using namespace Server::MirDatabase;
namespace S = ServerPackets;

namespace Server::MirObjects::Monsters
{
    class TrollKing : public MonsterObject
    {
    public:
        long long FearTime = 0;
        unsigned char AttackRange = 7;

    protected:
        TrollKing(MonsterInfo *info);

        bool InAttackRange() override;

        void Attack() override;

        void CompleteAttack(std::vector<std::any> &data) override;

        void CompleteRangeAttack(std::vector<std::any> &data) override;

        void ProcessTarget() override;

    private:
        void WalkAway();
    };
}
